// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PUR_APPLICATION_ITEM
// * CreateDate    : 2012/3/9 15:33:51
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/9 15:33:51
// * LastChanger   : 2012/3/9 15:33:51
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class PurApplicationItemTable : TableInfo
    {
		public const string C_TableName = "PUR_APPLICATION_ITEM";
		
		public const string C_APPLICATION_ITEM_ID = "APPLICATION_ITEM_ID";
		public const string C_APPLICATION_ID = "APPLICATION_ID";
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_QTY = "QTY";
		public const string C_PRICE = "PRICE";
		public const string C_DELIVERY_REQUIRED_DATE = "DELIVERY_REQUIRED_DATE";
		public const string C_DELIVERY_PLAN_DATE = "DELIVERY_PLAN_DATE";
		public const string C_REMARK = "REMARK";
		public const string C_PRODUCT_SPEC_IN = "PRODUCT_SPEC_IN";
		public const string C_PRODUCT_SPEC_OUT = "PRODUCT_SPEC_OUT";
        public const string C_PLAN_ORDER_ITEM_ID = "PLAN_ORDER_ITEM_ID";
        public const string C_PRODUCT_TECHNIC_ID = "PRODUCT_TECHNIC_ID";
		
		public PurApplicationItemTable()
        {
            _tableName = "PUR_APPLICATION_ITEM";
        }
		
		protected static PurApplicationItemTable _current;
        public static PurApplicationItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new PurApplicationItemTable();

            _current.Add(C_APPLICATION_ITEM_ID, new ColumnInfo(C_APPLICATION_ITEM_ID,"ApplicationItemId", true, typeof(string)));
            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID,"ApplicationId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_PRICE, new ColumnInfo(C_PRICE,"Price", false, typeof(decimal)));
            _current.Add(C_DELIVERY_REQUIRED_DATE, new ColumnInfo(C_DELIVERY_REQUIRED_DATE,"DeliveryRequiredDate", false, typeof(DateTime)));
            _current.Add(C_DELIVERY_PLAN_DATE, new ColumnInfo(C_DELIVERY_PLAN_DATE,"DeliveryPlanDate", false, typeof(DateTime)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_IN, new ColumnInfo(C_PRODUCT_SPEC_IN,"ProductSpecIn", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_OUT, new ColumnInfo(C_PRODUCT_SPEC_OUT,"ProductSpecOut", false, typeof(string)));
            _current.Add(C_PLAN_ORDER_ITEM_ID, new ColumnInfo(C_PLAN_ORDER_ITEM_ID, "ProductSpecOut", false, typeof(string)));
            _current.Add(C_PRODUCT_TECHNIC_ID, new ColumnInfo(C_PRODUCT_TECHNIC_ID, "ProductSpecOut", false, typeof(string)));
		}
		
		public ColumnInfo APPLICATION_ITEM_ID
        {
            get { return this[C_APPLICATION_ITEM_ID]; }
        }
		
		public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo PRICE
        {
            get { return this[C_PRICE]; }
        }
		
		public ColumnInfo DELIVERY_REQUIRED_DATE
        {
            get { return this[C_DELIVERY_REQUIRED_DATE]; }
        }
		
		public ColumnInfo DELIVERY_PLAN_DATE
        {
            get { return this[C_DELIVERY_PLAN_DATE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo PRODUCT_SPEC_IN
        {
            get { return this[C_PRODUCT_SPEC_IN]; }
        }
		
		public ColumnInfo PRODUCT_SPEC_OUT
        {
            get { return this[C_PRODUCT_SPEC_OUT]; }
        }

        public ColumnInfo PLAN_ORDER_ITEM_ID
        {
            get { return this[C_PLAN_ORDER_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_TECHNIC_ID
        {
            get { return this[C_PRODUCT_TECHNIC_ID]; }
        }
		
	}
}

